package mud.unit;

import mud.Interactable;

/** Action in which a unit looks at something */
public class LookAction extends Action {

    /** the unit that is looking */
    private final Character looker;
    
    /**  the entity at which the unit is looking */
    private final Interactable target;

    /**
     * Constructs a new LookAction
     * @param looker the unit that is looking
     * @param target that at which the unit is looking
     */
    public LookAction(Character looker, Interactable target) {
        super(false);
        this.looker = looker;
        this.target = target;
    }

    @Override
    public void perform() {
        looker.look(target);
    }

}
